home *** CD-ROM | disk | FTP | other *** search
- Path: news.nstn.ca!news
- From: nstn2264@fox.nstn.ca (Robin Murray)
- Newsgroups: comp.lang.c++
- Subject: Re: I can't control size of child window ind MDI application.
- Date: Sat, 03 Feb 1996 04:47:23 GMT
- Organization: Nova Scotia Technology Network
- Message-ID: <4eulo6$qd5@news.nstn.ca>
- References: <3112BEE8.7C88@au2.au.ac.th>
- NNTP-Posting-Host: ts1-05.mon.inforamp.net
- X-Newsreader: Forte Free Agent v0.46
-
- Wisanu Suthanurak <u3816076@au2.au.ac.th> wrote:
-
- > I want to adjust size of child window to fit with picture that I
- > loaded it. I try to use SetWindowPos(...) but it change only scrollbar.
- >How can I control my child window fit with picture?. I use CScrollView
- >as my base of myview..
-
- try setting the ShrinkToClient bool to TRUE when create the MDIChild.
-
- TMDIChild* child = new TMDIChild( *client, 0, view.GetWindow(),
- TRUE ); <==this guy here
-
- this will "shrinkwrap" your parent frame around the client window.
- --
- Robin Murray
- Moncton, New Brunswick
- 506-853-3779
-
-